<template>
  <el-dialog
    :visible.sync="dialogVisible"
    :close-on-click-modal="false"
    width="827px"
  >
    <div class="title">
      <div>主题分布</div>
      <i class="iconfont icon-guanbi2fill" @click="dialogVisible = false"></i>
    </div>
    <div style="padding: 0 36px 30px 36px">
      <rose-chart :chart-data="customData" />
    </div>
  </el-dialog>
</template>

<script>
import RoseChart from "../components/chartt/RoseChart.vue";

export default {
  components: { RoseChart,  },

  name: "FeedbackDialog",
  data() {
    return {
      dialogVisible: false,
         customData: [
        { value: 25, name: "产品A" },
        { value: 20, name: "产品B" },
        { value: 30, name: "产品C" },
        { value: 20, name: "产品D" },
        { value: 20, name: "产品E" },
      ],
    };
  },
  methods: {
    openFeedbackDialog() {
      this.dialogVisible = true;
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep .el-dialog__header {
  display: none;
}

::v-deep .el-dialog__body {
  padding: 0;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 26px;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 28px;
  
  div {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #333333;
  }
  
  i {
    font-size: 22px;
    cursor: pointer;
    
    &:hover {
      color: #409eff;
    }
  }
}
</style>
